<?php /*Template Name: Albums*/ ?>
<?php get_header(); ?>

<?php if( post_password_required() ): ?>    
    
    <div class="cols">
    
        <?php echo get_the_password_form(); ?>

    </div>
    
<?php else: ?>

    <?php
    $defaults = array(
        'list'      => array(),
        'ppp'       => '',
        'orderby'   => 'date',
        'order'     => 'DESC'
    );
    $opts = get_post_meta( get_the_ID(), 'dt_gallery_layout', true );
    $opts = wp_parse_args( $opts, $defaults );
    ?>

    <?php
    echo dt_portf_tax_list(
        array(
            'c_class'       => 'filter',
            'tax'           => $opts['list'],
            'post_type'     => 'dt_gallery',
            'post_taxonomy' => 'dt_gallery_category',
            'ajax'          => true
        )
    );
    ?>
    
    <div class="cols benefits"></div>

    <div class="paginator"></div>
    
<?php endif; ?>

<?php get_footer(); ?>